import * as types from './mutation-types'
export default {
	
	[types.UPDATE_CONVERSATION_MAP](state,conversationMap){
		state.conversationMap = {
			...conversationMap
		};
	},
	[types.SET_HISTORY](state,history){
		state.history = history
	},
	[types.SET_GOT_REDS](state,gotReds){
		state.gotReds = gotReds
	},	
	
	setChannel(state,payload=null){
		state.channel = payload;
	},
	setOnline(state,payload){
		state.online = payload
	}
}